package com.hlg.xboot.core.export;

import com.hlg.xboot.model.AbstractModel;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * <p>Description: 导出Excel视图接口</p>
 * <p>myblog: http://blog.csdn.net/xyang81</p>
 *
 * @author 杨信
 * @version 1.0
 * @date 2017/8/22
 */
public interface ExportExcel<E extends AbstractModel> extends Export {

    /**
     * 标题
     * @return
     */
    List<String> getExportHeader();

    /**
     * 数据
     * @return
     */
    List<List<String>> getExportRows(E e, Pageable pageable) throws Exception;

}
